<!DOCTYPE html>
<html>
    <head>
        <title>Issue 882: console.log() reports wrong source file and line number</title>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8"/>
        <link href="../../_common/testcase.css" type="text/css" rel="stylesheet"/>
        <script type="text/javascript">
        function log() {
            console.info("log");
            external();
        };
        </script>
        <script src="external.js" type="text/javascript"></script>
    </head>
    <body>
        <header>
            <h1><a href="http://code.google.com/p/fbug/issues/detail?id=882">Issue 882</a>: console.log() reports wrong source file and line number</h1>
        </header>
        <div>
            <section id="content">
                <button onclick="log()" id="createLog">Log</button>
            </section>
            <section id="description">
                <h3>Steps to reproduce</h3>
                <ol>
                    <li>Open Firebug</li>
                    <li>Enable and switch to the <em>Console</em> panel</li>
                    <li>Reload the page</li>
                    <li>Click the button <em>Log</em> above</li>
                </ol>
                <h3>Expected result</h3>
                <ul>
                    <li>
                        There should be two logs. One called "log" at line 9 of <em>issue882.html</em>, the other one
                        named "external" at line 2 of <em>external.js</em>.
                    </li>
                </ul>
            </section>
            <footer>Sebastian Zartner, sebastianzartner@gmail.com</footer>
        </div>
    </body>
</html>
